<include file="Public:header" />
<body>
<form name="myform" id="myform" method="POST" action="">
  <input name="ids" type="hidden" value="{$Think.get.idArr}">
  <fieldset>
    <legend>转交客户</legend>
    <table class="table_form" width="100%" cellspacing="0">
      <tbody>
        <tr>
          <th width="20%">转交给：</th>
          <td>
          <select name="user_id" id="user_id">
            <volist name="user_list" id="vo">
              <option value="{$vo.id}"  />{$vo.username}</option>
            </volist>
        	</select>
          </td>
        </tr>
        <tr class="last red">
          <th width="20%">提示：</th>
          <td>将所选的所有客户都转交到该管理员下</td>
        </tr>
      </tbody>
    </table>
    </table>
  </fieldset>
  <input type="submit" value="提交" class="dialog"  id="dosubmit">
</form>
</body>
</html>
<script type="text/javascript">
$(function(){
	
	//提交
	$('#myform').ajaxForm({
		beforeSubmit:  checkForm,
		success:       complete,
		dataType: 'json'
	});
	function checkForm(){
		return true;
	}
	var origin = $.artDialog.open.origin;
    function complete(data){
		art.dialog({id:'TNCICC',content: data.info,time: 2,icon:'succeed'});
		if( data.status==1 ){
			setTimeout(function(){origin.location.reload();},1000);
			closeWin(1500);
		}
    }
})

</script>